#include "page2.h"
#include "ui_page2.h"

#include<QPainter>
Page2::Page2(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Page2)
{
    ui->setupUi(this);
}

Page2::~Page2()
{
    delete ui;
}


void Page2::paintEvent(QPaintEvent *event)
{
    QPainter p(this);
    QPixmap pixmap(":/new/prefix1/img/yy2.jpg");
    p.drawPixmap(QRect(0,0,1080,1080),pixmap);
}

void Page2::on_pushButton_clicked()
{
    emit Page2Clicked();
}
